package com.xtm.exercise.base.B14spring.initStart.startupIncomplete;

import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/*
    初始化启动，而服务未启动成功，先执行此方法

  */
@Order(1)
@Component
public class InitUnSuccessDemo implements ApplicationRunner {
    @Override
    public void run(ApplicationArguments args) throws Exception {

        System.out.println("ApplicationRunner执行");
    }
}
